package com.xiaobaibai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaobaibai
 * @since 2020-10-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user")
@ApiModel(value="User对象", description="")
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private String code;

    @ApiModelProperty(value = "用户表主键")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty(value = "用户昵称")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "用户头像")
    @TableField("user_image")
    private String userImage;

    @ApiModelProperty(value = "用户性别:0女1男")
    @TableField("user_gender")
    private Boolean userGender;

    @ApiModelProperty(value = "用户openid")
    @TableField("user_openid")
    private String userOpenid;

    @ApiModelProperty(value = "用户sessionKey")
    @TableField("user_session_key")
    private String userSessionKey;

    @ApiModelProperty(value = "用户手机号")
    @TableField("user_phone")
    private String userPhone;

    @ApiModelProperty(value = "用户最后一次登录时间")
    @TableField("user_last_login")
    private Date userLastLogin;

    @ApiModelProperty(value = "创建时间")
    @TableField("user_create_time")
    private Date userCreateTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("user_update_time")
    private Date userUpdateTime;


}
